<div class="userStyle">
  <div class="right-content">
    <!-- top -->
    <div class="right-top">
      <span class="top-color-blue" ui-sref="main.user">用户列表</span>
    </div>
    <!-- middle -->
    <div class="right-middle container-fluid">
      <div class="row swi-ML15">
          <select ng-model="searchData.key" class="col-sm-3 swi-select">
            <option value="mobileNo">手机号</option>
            <option value="name">姓名</option>
          </select>
          <input type="text" class="col-sm-6 swi-input swi-search-input swi-MR0" ng-model="searchData.value" placeholder="手机号/名字"/>
          <button ng-click="userSearch();" class="col-sm-2 swi-btn swi-btn-bgcolor-blue pull-right">查询</button>
      </div>
    </div>
    <!-- bottom -->
    <div class="right-middle container-fluid">
      <div class="row">
        <span class="col-sm-2 swi-span-logo"></span>
        <span class="col-sm-8 swi-span-title">用户列表</span>
        <button ui-sref="main.addUser" class="col-sm-2 swi-btn swi-btn-bgcolor-blue pull-right">新增</button>
      </div>
      <!-- table -->
      <div class="container-fluid swi-table" ng-if="conf.total>0">
        <div class="row row-eq-height">
          <div ng-repeat="itemHead in tableConf.tableHead" class="swi-thead col-md-{{itemHead.width}}" ng-bind="itemHead.name"></div>
        </div>
        <div class="row row-eq-height" ng-repeat="itemTrs in tableConf.tableTr track by $index">
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[0].width}}" ng-bind="$index+1"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[1].width}}" ng-bind="itemTrs.customer_id"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[2].width}}" ng-bind="itemTrs.account_no"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[3].width}}" ng-bind="itemTrs.contact_no"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[4].width}}" ng-bind="itemTrs.mobile_no"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[5].width}}" ng-bind="itemTrs.user_name"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[6].width}}" ng-bind="itemTrs.sex"></div>
          <div class="flex1 swi-tr col-md-{{tableConf.tableHead[7].width}}">
            <a ui-sref="main.userDetail({userId:itemTrs.id})">编辑</a>
            <a ng-click="delUser(itemTrs.id)">删除</a>
          </div>
        </div>
      </div>
      <!-- 表格无数据 -->
      <div class="container-fluid swi-table" ng-if="conf.total==0">
        <div class="row">
          <div class="swi-noMore col-md-12">暂无数据！</div>
        </div>
      </div>
    </div>
    <!-- 分页 -->
    <div  ui-pagination conf="conf"></div>
  </div>
  <!-- 弹窗 -->
  <div growl></div>
</div>